/**
 * 
 */
package huajiu.com.base;

/**
 * @author ItBotPjq
 *2018年1月17日
 */
public class CdResult {
	/**
	 * 体质返回Json对象
	 */
	private static final long serialVersionUID = 1100788984928083042L;
	
	private Integer errorCode;
	
	private String errorMessage;
	
	private Integer label;

	public Integer getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Integer getLabel() {
		return label;
	}
	/**
	 * 返回-1则表示为空；
	 * @param label
	 */
	public void setLabel(Integer label) {
		this.label = label == null? CommonConstant.ISNULL:label;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public static CdResult failCdResult(){
		CdResult cdResult = new CdResult();
		cdResult.setErrorMessage("sign签名不正确");
		cdResult.setErrorCode(1004);
		return cdResult;
	}
}
